package dropbox.common;
/**
 * this class represent a create folder command
 * means a folder was created on server
 * 
 * @author Yoav
 *
 */
public class CreateFolderCommand extends Command {
	
	private String dirPath;
	
	/**
	 * d.cont
	 */
	public CreateFolderCommand() {
		super();
	}


	/**
	 * constructor
	 * @param dirPath dir path
	 */
	public CreateFolderCommand(String dirPath) {
		super();
		this.dirPath = dirPath;
	}


	/**
	 * get dir path
	 * @return dir path
	 */
	public String getDirPath() {
		return dirPath;
	}


	/**
	 * set dir path
	 * @param dirPath dir path
	 */
	public void setDirPath(String dirPath) {
		this.dirPath = dirPath;
	}


	/**
	 * use FileAction interface to create a folder
	 */
	@Override
	public void execute() {
		this.getAction().createDir(dirPath);
	}

}
